#pragma once

#include <vector>
#include "../Vocoder/Vocoder.h"

class PerformanceMonitor;

/*
Implementation of audio receiver that just stores each NewSample in its publicly available vector.
*/
class OutputBuffer: public AudioReceiver
{
public:
	OutputBuffer(PerformanceMonitor* performance);
	~OutputBuffer(void);

	void NewSample(short* sample, unsigned int length);

	std::vector<short> buffer;
private:	
	PerformanceMonitor* performance;
};
